-- GENERATED SPELL FOR [Amani Snake] --


function spell0_24338(pUnit, Event) --@Crippling Poison,n/a--
pUnit:FullCastSpellOnTarget(25809,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24338', 12258, 1)
end

function spell1_24338(pUnit, Event) --@Mind-numbing Poison,n/a--
pUnit:FullCastSpellOnTarget(25810,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24338', 12297, 1)
end

function Sorts_24338(pUnit, Event)
local choix_sorts_24338 = math.random(0, 1)
if choix_sorts_24338 == 0 then
pUnit:RegisterEvent('spell0_24338', 1, 1)
end
if choix_sorts_24338 == 1 then
pUnit:RegisterEvent('spell1_24338', 1, 1)
end
end

function mob24338_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24338', math.random(1500, 3000), 1)
end

function mob24338_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24338_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24338_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24338, 1, 'mob24338_Action')
RegisterUnitEvent(24338, 2, 'mob24338_Leave')
RegisterUnitEvent(24338, 3, 'mob24338_Kill')
RegisterUnitEvent(24338, 4, 'mob24338_Die')
